
package controller;

import Service.Entity;
import Service.InfoCustomerService;
import Service.Personal;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.xml.ws.WebServiceRef;


@ManagedBean
@RequestScoped
public class CustomerBean {
    @WebServiceRef(wsdlLocation = "WEB-INF/wsdl/localhost_8080/WSCustomer/InfoCustomerService.wsdl")
    private InfoCustomerService service;
    

    public java.util.List<Service.Entity> getCustomers() {
        Service.InfoCustomer port = service.getInfoCustomerPort();
        return port.personal();
    }
}
